package com.itheima.chapter09.io.objectstream;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

//反序列化流
public class ObjectInputStreamDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois =new ObjectInputStream(new FileInputStream("MyIdeaTest\\oos.txt"));
        Object stu = ois.readObject();
        System.out.println(stu);
        ois.close();

    }
}
